From: Florian Müllner Date: Mon, 2 Mar 2020 12:46:04 +0000 (+0100) Subject: environment: Fix date conversion X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~761^2^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0dd171a7c899806e93254d879bc126431d99c36b;p=gnome-shell.git environment: Fix date conversion This is a regression from commit 06b690ff21204: GLib.DateTime.new() expects the full four-digit year, so passing the abbreviated year from Date() will result in a bogus datetime. Today is *not* Saturday March 2nd, 120 ... https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1061 --- diff --git a/js/ui/environment.js b/js/ui/environment.js index 8ab9e7d44..0450f7932 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -320,7 +320,7 @@ function init() { _localTimeZone = GLib.TimeZone.new_local(); let dt = GLib.DateTime.new(_localTimeZone, - this.getYear(), + this.getFullYear(), this.getMonth() + 1, this.getDate(), this.getHours(),